<script type="text/javascript">
var flAuto = true;
var timeoutHnd; 

function doSearch(ev)
{ 
      if(!flAuto) return; 
      // var elem = ev.target||ev.srcElement; 
      if(timeoutHnd) 
          clearTimeout(timeoutHnd); 
          timeoutHnd = setTimeout(gridReload,500); 
} 
 
function enableAutosubmit(state)
{ 
      flAuto = state; 
      jQuery("#submitButton").attr("disabled",state); 
}

function gridReload()
{ 
	     
         var ct_mask = jQuery("#numeroS").val();
        
          document.commentForm.submit();
          
}
</script>

<?php echo form_open('graficocontrolinterno', array('name' => 'commentForm','id' => 'commentForm'));?>
 <select name="numeroS" id="numeroS" onChange='doSearch(arguments[0]||event)'>
    <?php switch ($semanaf){
    	case 9:
      ?> 
           <option value="9" selected="selected">10</option>
           <option value="15">16</option>
           <option value="25">26</option>
           <option value="51">52</option>
       <?php 
           break;
           case 15:
       ?>    
          <option value="9" >10</option>
           <option value="15" selected="selected">16</option>
           <option value="25">26</option>
           <option value="51">52</option>
        <?php 
           break;
           case 25:
       ?>  
       
       <option value="9" >10</option>
           <option value="15">16</option>
           <option value="25" selected="selected">26</option>
           <option value="51">52</option>
           
         <?php 
           break;
           case 51:
       ?>  
           <option value="9" >10</option>
           <option value="15">16</option>
           <option value="25">26</option>
           <option value="51" selected="selected">52</option>
    	
        <?php 
           break;
        }?>
 </select>
 </form>

<table>
  <tr>
     <td>
     <?php
	    echo $var;
     ?>
     </td> 
  </tr>
  <tr>
    <td>
       <?php echo $pizzaA.$pizzaB.$pizzaC;?>
    </td>
  </tr>
       
   <tr>
    <td> 
          <div style="text-align: center;font-size: 14px;color: #151515;">Graf&iacute;cos Inbound</div>
          <?php echo $this->mscore->inbount(8).$this->mscore->inbount(14);?>
    </td>
  </tr>
  
     <tr>
    <td> 
        <?php echo $this->mscore->inbount(17).$this->mscore->inbount(22);?>
    </td>
  </tr>
 
   <tr>
    <td>
                <div style="text-align: center;font-size: 14px;color: #151515;">Graf&iacute;cos por cientos DATOS + FIRMA</div>
            <?php 
                echo $wiget['maria'].$wiget['charleni'];   
            ?>
    </td>
  </tr>
  
  <tr>
     <td>
         <?php 
                echo $wiget['maddelin'];   
            ?>
   
     </td>
   </tr>
  
  
</table>
